{% extends "projects/base.html" %}



{% block title %}{{video.name}} - {{project.name}} - {{block.super}}{% endblock %}


{% block projectcontent %} 

<h1>{{project.name}}</h1>
<h2>{{video.name}}</h2>

<dl>
<dt>
  <object width="640" height="505">
    <param name="movie" value="http://www.youtube.com/v/{{video.video_id}}&hl=de&fs=1&rel=0&color1=0x8EC1A5&color2=0xD7F5E4&showinfo=0&"></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <embed src="http://www.youtube.com/v/{{video.video_id}}&hl=de&fs=1&rel=0&color1=0x8EC1A5&color2=0xD7F5E4&showinfo=0&" 
           type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" 
           width="620" height="490"></embed>
  </object>
</dt>
<dd><em>{{video.description}}</em></dd>
</dl>
</br>
added by {{video.added_by|userlink}}<br/>


{% if not project.video_set.all|length_is:"1" %}
<h2>more videos</h2>
{% for alt_video in project.video_set.all %}
<div class="image_list">
<ul>
{% ifnotequal alt_video video %}
<li>
<a href={{alt_video.get_absolute_url}} title="{{alt_video.name}}">{{alt_video.preview}}</a>
</li>
{% endifnotequal %}
</ul>
</div>
{% endfor %}
{% endif %}


{% if has_member_perm %}
    <br/>
    <a href="{% url add_video project.slug %}">add Video</a>
{% endif %}


{% if has_member_perm %}
<!--a href="{% url edit_video project.slug video.slug %}" title="update data from youtube">edit</a-->
<form action="{% url edit_video project.slug video.slug %}" method="post">
<input type="submit" name="update" value="update" class="button" title="sync data from youtube"/>
</form>
<a href="{% url delete_video project.slug video.slug %}" class="actionlink">delete</a>
<br/>
{% endif %}

<a href="{{project.get_absolute_url}}">back to {{project.name}}</a>
{% endblock %} 
 
